package com.qf.service;

import com.qf.pojo.User;
import reactor.core.publisher.Flux;
import reactor.core.publisher.Mono;

import java.util.List;

/*
 *@Description:
 *@author:刘哥
 *@Date:86180 2022/9/22 16:09
 */
public interface UserService {
    //根据 id 查询用户
    Mono<User> getUserById(int id);
    //查询所有用户
    Flux<User> getAllUser();
    //添加用户
    Mono<Void> saveUserInfo(Mono<User> user);

    Flux<User> getUsersStream();
    //根据 id 查询用户
    User getUserById1(int id);
    //查询所有用户
    List<User> getAllUser1();
    //添加用户
    void saveUserInfo1(User user);
}
